gh-61103: use PEP 3118 codes in the ctypes#149344
gh-61103: use PEP 3118 codes in the ctypes#149344skirpichev wants to merge 3 commits intopython:mainfrom
Conversation
This change only buffer protocol support for complex types, `_type_` properties aren't affected.
|
@encukou, I think this should fix compatibility with NumPy (buffer protocol). We can decide later what to do with |
|
I'm worried that this is a breaking change relative to Python 3.14. But, with #148676 this would be redundant. |
Documentation build overview
|
Done.
(I think merging that pr is a bad idea.) Though, you are right, my 3 PRs - only an alternative. |
|
I merged my PR instead which changes ctypes |
|
@vstinner, you already closed this door by #149368. Anyway, that's a kind of direction I would like to support, instead of #148676. No multiple type codes. I only worry, that in this way you also introduce incompatibility with the NumPy. That's why reversion of my changes in 3.15 and struct (deprecation) looks better for me. Lets wait decision on a PEP. Then extend the struct module in The Right Way. Then adapt other stuff. This PR does make sense only on this kind of road. |
This change only buffer protocol support for complex types,
_type_properties aren't affected.